package chapter_04_singleton.p2_singleton;

/**
 * Created by CharloYao on 2017/3/23.
 * 单例模式：饿汉模式
 */
public class Singleton {

    private Singleton(){};

    private static Singleton singleton = new Singleton();

    public static Singleton getInstance(){
        return singleton;
    }
}
